package com.job.shuang.HomeWork0709.JichengDuotai;

import java.time.Year;

/**
 * @author Liushuang
 * @version 1.0
 * @since 2022-07-09 21:28:23
 */
public class Employee extends Lead {  //多层次继承->领导->人
    protected String task;  //任务
    protected String worktime;  //每天的工作时间

    public Employee(int year, int month, int day) {
        super(year, month, day);
    }

    public Employee() {
        super();
    }


    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getWorktime() {
        return worktime;
    }

    public void setWorktime(String worktime) {
        this.worktime = worktime;
    }

    public void jobIntroduction(){
        System.out.println("我的任务是："+task+"我每天的工作时间："+worktime+"我的入职时间：");
    }
}
